package com.example.t1.activity;

import android.os.Bundle;

import com.example.t1.BaseViewActivity;
import com.example.t1.R;
import com.example.t1.model.Reflect;

/**
 * 
 * 
 * 名称：Activity0.java 描述：反射
 * 
 * @author 智迅 zhixun123@gmail.com
 * @date：2013-12-16 上午11:18:47
 * @version v1.0
 */
public class Activity0 extends BaseViewActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_activity0);
	String str = Reflect.class.getName();
	try {
	    Class<?> c = Class.forName(str);
	    Reflect reflect = (Reflect) c.newInstance();
	    setTitle(reflect.toString());
	} catch (Exception e) {
	    e.printStackTrace();
	}
    }

}
